﻿/** \file
* \$Rev: 183 $
* 
* \$Date: 2010-04-14 00:34:38 +0000 (Wed, 14 Apr 2010) $
*
* \$URL: http://chorus-twitter.googlecode.com/svn/trunk/src/twitter/Rate.cs $
*/

using System;
using System.Xml.Serialization;
using chorus.utils;

namespace chorus.twitter
{
	/// <summary>
	/// A basic rate information class.
	/// </summary>
	[XmlRoot("hash")]
	public class Rate
	{
		/// <summary>The number of remaining transactions allowed.</summary>
		[XmlElement("remaining-hits")]
		public uint remaininghits;
		/// <summary>The hourly transaction limit.</summary>
		[XmlElement("hourly-limit")]
		public uint hourlylimit;
		/// <summary>The time at which the transaction limit will be reset.</summary>
		[XmlElement("reset-time")]
		public SerDate resettime;
		/// <summary>The number of seconds until the transaction limit will be reset.</summary>
		[XmlElement("reset-time-in-seconds")]
		public uint resettimesecs;
	}
}
